package demo2;

public class Test {
    public static void main(String[] args) {
        TestA testA = new TestA();
        System.out.println("-----------------");

        //匿名内部类
        InterFaceA a =new InterFaceA(){//接收
            @Override
            public void func() {
                System.out.println("再次重写的func");
            }
        };

        new InterFaceA(){//接收
            @Override
            public void func() {
                System.out.println("再再次重写的func");
            }
        }.func();
    }
}
